package cn.mapway.ib.share.model.dir;

import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

/**
 * 目录文件
 */
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class DirFile {
    public String location;
    public long size;
    public long lastModifyTime;
    public boolean directory;

    public boolean hasFetch = false;

    @JsOverlay
    public final String getLocation() {
        return location;
    }

    @JsOverlay
    public final void setLocation(String location) {
        this.location = location;
    }

    @JsOverlay
    public final Long getSize() {
        return size;
    }

    @JsOverlay
    public final void setSize(Long size) {
        this.size = size;
    }

    @JsOverlay
    public final Long getLastModifyTime() {
        return lastModifyTime;
    }

    @JsOverlay
    public final void setLastModifyTime(Long lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @JsOverlay
    public final boolean isDirectory() {
        return directory;
    }

    @JsOverlay
    public final void setDirectory(boolean directory) {
        this.directory = directory;
    }
}
